const express = require('express')
const app = express()
const port = 8000


app.get('/', (req, res) => {
    res.send('Hello World!');
})


app.get('/hero', (req, res) => {
    res.send('hero');
})


app.post('/hero', (req, res) => {
    res.send('post hero');
})


app.listen(port, () => {
    console.log(`Example app listening at http://localhost:${port}`)
})